package com.zjitc.service.imp;

import com.zjitc.dao.UserDao;
import com.zjitc.model.Category;
import com.zjitc.model.CategorySecond;
import com.zjitc.model.Product;
import com.zjitc.model.User;
import com.zjitc.service.UserControllerService;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * Create by IntelliJ IDEA
 *
 * @author: jsonor
 * @date-Time: 2018/5/17 13:57
 * @description:
 */
@Service
public class UserControllerServiceImp implements UserControllerService {
  @Autowired
  private UserDao userDao;

  @Override
  public void regist(User user) {
    userDao.regist(user);
  }

  @Override
  public User login(String username,String password) {
   return userDao.login(username,password);
  }

  @Override
  public List<User> findAllUser() {
    return userDao.findAllUser();
  }

  @Override
  public List<Product> findcsid(Integer csid) {
    return userDao.findcsid(csid);
  }

  @Override
  public List<Product> findPid() {
    return userDao.findPid();
  }


}
